{include file="public/header" /}
<style type="text/css">.gray-bg{ background: #fff; } .wrapper{ padding:0px;}</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-content">
                <form class="form-horizontal" method="post">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">内容：</label>
                        <div class="col-sm-9">
                            <textarea name="content" class="form-control" rows="3" cols="20">{$name.content|default=""}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">置顶：</label>
                        <div class="col-sm-9">
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" value="1" name="is_top" {if isset($name.is_top) and $name.is_top eq 1}checked="checked"{/if} /> 是
                                </label>
                                <label>
                                    <input type="radio" value="0" name="is_top" {if empty($name.is_top)}checked="checked"{/if} />否
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">隐藏：</label>
                        <div class="col-sm-9">
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" value="1" name="is_hide" {if isset($name.is_hide) and $name.is_hide eq 1}checked="checked"{/if} /> 是
                                </label>
                                <label>
                                    <input type="radio" value="0" name="is_hide" {if empty($name.is_hide)}checked="checked"{/if} />否
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">排序：</label>
                        <div class="col-sm-9">
                            <input name="sort" class="form-control" value="{$name.sort|default=0}" />
                            <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 数字越小位置越前</span>
                        </div>
                    </div>
                    <input type="hidden" name="id" value="{$name.id|default=0}" >
                </form>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
{load href="__STYLE__/admin/plugins/iCheck/icheck.min.js"}
{load href="__STYLE__/admin/plugins/iCheck/custom.css"}
<script type="text/javascript">
$(document).ready(function(){
    $(".i-checks").iCheck({
        checkboxClass: "icheckbox_square-green",
        radioClass: "iradio_square-green",
    });
});
</script>
{include file="public/bottom" /}